/**
 * 
 */
package x.java.net;

import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;

/**
 * @author qiangli
 *
 */
public class URLStreamHandler extends java.net.URLStreamHandler {

	public URLStreamHandler() {
	}

	@Override
	protected URLConnection openConnection(URL u) throws IOException {
		if (u.getProtocol().equalsIgnoreCase("v")) {
			return new x.java.net.protocol.v.URLConnection(u);
		}
		return u.openConnection();
	}

}
